<template>
	<view>
		<view>{{output.text}}</view>
		<view @click="test1">智能客服</view>
		<view>
			pages/SmartService/index
		</view>
	</view>
</template>
<script>
	import {
		list
	} from '@/utils/api'
	import {post} from "@/utils/requestV2.js"
	
	export default {
		data() {
			return {
				output: {
					text: ''
				}
			}
		},
		components: {},
		onLoad() {
			this.init()
		},
		methods: {
			
			async init() {
				let payload = {
				//   "prompt": "hello"
				  message: "hello"
				}
				let res = await post("", payload)
				console.log("======",res)
				this.output= res.result.output
			},
			
			
			test1(){
				uni.navigateTo({
						url: "/pages/SmartService/index"
				})
			},
			
			
			// //体检科英文问卷
			// goEnQa(){
			// 	uni.navigateTo({
			// 		url: "/pages/enqa/index"
			// 	})
			// },

			// goAyhQaHr() {
			// 	uni.navigateTo({
			// 		url: "/pages/qa"
			// 	})
			// },

		},
	}
</script>

<style lang="scss" scoped>

</style>